<div style="display: none">{include file="header.html"}</div>
<link href="/admin/templates/style/admin.css" rel="stylesheet" type="text/css" />
<script>
	//canshow普通货单
	//canshowt集卡货单
</script>
<style>
.infoTable label{color:#444;}
html,body{background: #fff;}
.infoTable{
	margin: 0 0 0 0;
	width: 100%;
}
.info .box_th {
    text-align: right;
	width: 80px;
}
.info .box_td {
	width: 100px;
}
.info{margin:0;}
</style>
<div class="info">
		<div class="jui-cut-label fn-mt25">
	        <div class="jui-message-bar">基本信息</div>
	    </div>
		<table class="infoTable">		 
			<tr>
				<th class="paddingT15">{$lang.wm_stauts}:</th>
				<td>{$waybill.wm_stauts|default:-}</td>
             	<th class="">{$lang.wm_type}: <select style="display: none;"  name="field" id="field">{html_options options=$search_options selected=$waybill.wm_type}</select></th>
             	<td>{$waybill.wm_type|default:-}</td>
         	</tr>
			<tr>
				<th class="">{$lang.wm_opdate}:</th>
				<td class=" ">{if $waybill.wm_opdate}{$waybill.wm_opdate|date:Y-m-d H:i:s}{else}-{/if}</td>
				<th class="">{$lang.wm_optid}:</th>
				<td class=" ">{$waybill.user_name|default:-}</td>
			</tr>
			<tr>
				<th class="">{$lang.wm_note}:</th>
				<td class=" " colspan="3">
					{$waybill.wm_note|default:-}
				</td>
			</tr>
		</table>
		<div class="jui-cut-label fn-mt25" style="display: none;">
			<div class="jui-message-bar">货物信息</div>
		</div>
		{foreach from=$sublist item=s}
		{if $normal}
			<table class="infoTable">
				{if $s.box}
				{foreach from=$s.box item=b}
				<tr >
					<th class="box_th">品名:</th>
					<td class="box_td">{$b.gs_name|default:-}</td>
					<th class="box_th">件数:</th>
					<td class="box_td">{$b.ws_piece|default:-}</td>
					<th class="box_th">重量/吨:</th>
					<td class="box_td">{$b.ws_weight|default:-}</td>
					<th class="box_th">尺码:</th>
					<td class="box_td">{$b.ws_size|default:-}</td>
				</tr>
				{/foreach}
				{/if}
			</table>
		{else}
		<table class="infoTable">
			{if $s.box}
				{foreach from=$s.box item=b}
				<tr >
					<th class="box_th">箱型:</th>
					<td class="box_td">{$b.g_box|default:-}</td>
					<th class="box_th">箱量:</th>
					<td class="box_td">{$b.ws_volume|default:-}</td>
					<th class="box_th">箱号:</th>
					<td class="box_td">{$b.g_ctn_no|default:-}</td>
					<th class="box_th">设备号:</th>
					<td class="box_td">{$b.g_eir_code|default:-}</td>
				</tr>
				{/foreach}
			{/if}
		</table>
		{/if}
		<hr style="FILTER: alpha(opacity=100,finishopacity=0,style=1)" size="1" width="90%" color="#ccc">
		{if $normal}
			<table class="infoTable" >
				<tr>
					<th  class="paddingT15">货主:</th>
					<td  class="paddingT15 wordSpacing5">{$s.g_owner|default:-}</td>
					<th class="paddingT15">货主电话: </th>
					<td class="paddingT15 wordSpacing5">{$s.g_owner_tel|default:-}</td>
				</tr>
				<tr>
					<th class="paddingT15 wordSpacing5">发货人: </th>
					<td class="paddingT15 wordSpacing5">{$s.g_consignor|default:-}</td>
					<th  class="paddingT15"> 发货电话: </th>
					<td  class="paddingT15 wordSpacing5">{$s.g_consignor_tel|default:-}</td>
				</tr>
				<tr>
					<th class="paddingT15">装货地: </th>
					<td class="paddingT15">{$s.g_loading_place|default:-}</td>
					<th class="paddingT15">装货时间: </th>
					<td class="paddingT15">{$s.g_loading_date|date:Y-m-d H:i|default:-}</td>
				</tr>
				<tr>
					<th class="paddingT15 wordSpacing5">收货人: </th>
					<td class="paddingT15">{$s.g_consignee|default:-}</td>
					<th class="paddingT15 wordSpacing5">收货电话: </th>
					<td class="paddingT15">{$s.g_consignee_tel|default:-}</td>
				</tr>
				<tr>
					<th class="paddingT15"> 卸货地: </th>
					<td class="paddingT15">{$s.g_unloading_place|default:-}</td>
					<th class="paddingT15"> 卸货时间: </th>
					<td class="paddingT15">{$s.g_unloading_date|date:Y-m-d H:i|default:-}</td>
				</tr>
				<tr>
					<th class="paddingT15">备注:</th>
					<td class="paddingT15">{$s.g_note}</td>
				</tr>
			</table>
		{else}
			<table class="infoTable" >
				<tr>
					<th  class="paddingT15">货主:</th>
					<td  class="paddingT15 wordSpacing5">{$s.g_companytid|default:-}</td>
					<th class="paddingT15">船名: </th>
					<td class="paddingT15 wordSpacing5">{$s.g_ship|default:-}</td>
				</tr>
				<tr>
					<th class="paddingT15 wordSpacing5">船次: </th>
					<td class="paddingT15 wordSpacing5">{$s.g_voyage|default:-}</td>
					<th  class="paddingT15"> 提单号: </th>
					<td  class="paddingT15 wordSpacing5">{$s.g_awb_code|default:-}</td>
				</tr>
				<tr>
					<th class="paddingT15 wordSpacing5">{if $waybill.wm_type=='集卡进口'}卸货时间{else}装货时间{/if}: </th>
					<td class="paddingT15">{$s.g_packingtime|date:Y-m-d H:i|default:-}</td>
					<th class="paddingT15 wordSpacing5">{if $waybill.wm_type=='集卡进口'}到港时间{else}集港时间{/if}: </th>
					<td class="paddingT15">{$s.g_collectiontime|date:Y-m-d H:i|default:-}</td>
				</tr>
				<tr>
					<th class="paddingT15">空箱场站联系人: </th>
					<td class="paddingT15">{$s.g_container_man|default:-}</td>
					<th class="paddingT15">空箱场站电话: </th>
					<td class="paddingT15">{$s.g_container_tel|default:-}</td>
				</tr>
				<tr>
					<th class="paddingT15"> 重箱场站联系人: </th>
					<td class="paddingT15">{$s.g_full_container_man|default:-}</td>
					<th class="paddingT15"> 重箱场站电话: </th>
					<td class="paddingT15">{$s.g_full_container_tel|default:-}</td>
				</tr>
				<tr>
					<th class="paddingT15">联系人: </th>
					<td class="paddingT15">{$s.g_loading_man|default:-}</td>
					<th class="paddingT15">电话: </th>
					<td class="paddingT15">{$s.g_loading_tel|default:-}</td>
				</tr>
				<tr>
					<th  class="paddingT15"> 空箱场站: </th>
					<td  class="paddingT15">{$s.g_container_depot|default:-}</td>
					<th  class="paddingT15">  重箱场站: </th>
					<td  class="paddingT15">{$s.g_full_container_depot|default:-}</td>
				</tr>
				<tr>
					<th  class="paddingT15">卸货地: </th>
					<td  class="paddingT15">{$s.g_loading_place|default:-}</td>
				</tr>
				<tr>
					<th class="paddingT15">备注:</th>
					<td class="paddingT15">{$s.g_note}</td>
				</tr>
			</table>
		{/if}
		{/foreach}
		<div class="jui-cut-label fn-mt25">
	        <div class="jui-message-bar">派车信息</div>
	    </div>
	    <table class="infoTable">
	    	<tr>
				<th class="paddingT15">{$lang.wm_carrier}:</th>
				<td class="paddingT15 wordSpacing5">{$waybill.wm_carrier|default:-}</td>
				<th class="paddingT15">{$lang.wm_vhc_code}:</th>
				<td class="paddingT15 wordSpacing5">{$waybill.wm_vhc_code|default:-}</td>
			</tr>
			<tr>
				<th class="paddingT15">{$lang.wm_driver}:</th>
				<td class="paddingT15 wordSpacing5">{$waybill.wm_driver|default:-}</td>
				<th class="paddingT15">{$lang.wm_driver_tel}:</th>
				<td class="paddingT15 wordSpacing5">{$waybill.wm_driver_tel|default:-}</td>
			</tr>
			<tr>
				<th class="paddingT15">{$lang.wm_dispatch_person}:	</th>
				<td class="paddingT15 wordSpacing5">{$waybill.wm_dispatch_person|default:-}</td>
				<th class="paddingT15">{$lang.wm_dispatch_person_tel}:	</th>
				<td class="paddingT15 wordSpacing5">{$waybill.wm_dispatch_person_tel|default:-}</td>
			</tr>
			<tr>
				<th class="paddingT15">{$lang.wm_dispatch_date}:</th>
				<td class="paddingT15 wordSpacing5">{if $waybill.wm_dispatch_date} {$waybill.wm_dispatch_date|date:Y-m-d H:i}{else}-{/if}</td>
				<th class="paddingT15">发车要求:</th>
				<td class="paddingT15 wordSpacing5">
					{if $waybill.wm_requiredl_note_voice}
					<audio controls="controls">
					<source src="{$waybill.wm_requiredl_note_voice}" type="audio/ogg">
					你的浏览器太老了，请更新否则没法听语音
					</audio>
					{/if}
					{$waybill.wm_requiredl_note|default:-}
				</td>
			</tr>
		</table>
</div>
